# Copyright (c) 2009-2010, Sean A.O. Harney <sharney3@gmail.com>

all: fmtstring fmtstring.ccured bo bo.ccured
	@echo "The $$PWD build is complete.";

CC = gcc
CCURED = /opt/ccured/bin/ccured
EXTRA_DIST = *.omf *.inc *.c *.java *.groovy *.sh old/*.omf NOTES README dictionary.example privkey.rsa
%: %.c
	$(CC) -g -o $@ $<

%.ccured: %.c
	@if [ ! -x $(CCURED) ]; then \
	    echo "CCured is not installed. Not continuing with build of test-omf-scripts/$@ target." ; \
	else \
	$(CCURED) -g -o $@ $< ; \
	fi
clean:
	rm -f fmtstring fmtstring.ccured bo bo.ccured
distclean: clean
